package com.emergency.data.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel("新增用户信息Param")
public class UserParam {

    @ApiModelProperty("用户名")
    @NotBlank(message = "username 不能为空")
    @Size(max = 10, message = "username 长度不能超过30")
    private String username;

    @ApiModelProperty("用户名")
    @NotBlank(message = "realName 不能为空")
    @Size(max = 10, message = "realName 长度不能超过15")
    private String realName;

    @ApiModelProperty("部门ID")
    @NotNull(message = "deptId 不能为空")
    private Long deptId;

    @ApiModelProperty("权限ID")
    @NotNull(message = "purviewId 不能为空")
    private Long purviewId;
}
